package com.oa.gform.client.bean.binder;

import com.oa.gform.client.ui.GField;

public class Mapping {
	GField<?> formField;
	String beanField;
	Mapper mapper;
	
	
	public Mapping(GField<?> formField) {
		this.beanField = formField.getFieldName().replaceFirst("fld", "").toUpperCase();
	} 
			
	public Mapping(GField<?> formField, String beanField) {
		this.formField = formField;
		this.beanField = beanField;
	}
	public Mapping(GField<?> formField, String beanField,Mapper mapper) {
		this.formField = formField;
		this.beanField = beanField;
		this.mapper = mapper;
			
	}

	public GField<?> getFormField() {
		return formField;
	}

	public void setFormField(GField<?> formField) {
		this.formField = formField;
	}

	public String getBeanField() {
		return beanField;
	}

	public void setBeanField(String beanField) {
		this.beanField = beanField;
	}

	public Mapper getMapper() {
		return mapper;
	}

	public void setMapper(Mapper mapper) {
		this.mapper = mapper;
	}
	
	
	
}